Skip to content

Conversation

@ro-i
Copy link
Contributor

@ro-i ro-i commented Nov 14, 2025

(The tests in TestKmpStr.cpp are an automatically generated POC to make sure things work.)

@ro-i ro-i requested review from jhuber6, mjklemm and shiltian November 14, 2025 13:56
@llvmbot llvmbot added the openmp:libomp OpenMP host runtime label Nov 14, 2025
@ro-i ro-i force-pushed the users/ro-i/check-libomp-unit branch from 4c9e176 to c801cb4 Compare November 14, 2025 13:57
@ro-i ro-i force-pushed the users/ro-i/check-libomp-unit branch from 2f30670 to b12ff59 Compare December 16, 2025 15:47
@ro-i ro-i requested a review from Meinersbur December 16, 2025 16:08
Copy link
Contributor

@shiltian shiltian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM in geenral.

set_target_properties(OpenMPUnitTests PROPERTIES FOLDER "OpenMP/Tests")

if(WIN32 OR STUBS_LIBRARY)
message(WARNING "OpenMP unittests disabled due to stub library or Windows")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason this doesn't work on Windows?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so. But since the CMake changes are already complicated enough to review and test as they are, I thought it might be best to get things working first and then add something like the Windows support in a follow-up

Co-authored-by: Shilei Tian <i@tianshilei.me>
Copy link
Contributor

@jplehr jplehr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for adding unit tests here!

Copy link
Member

@Meinersbur Meinersbur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ro-i
Copy link
Contributor Author

ro-i commented Jan 8, 2026

@Meinersbur gtest handling should be improved now as discussed

Copy link
Member

@Meinersbur Meinersbur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ro-i ro-i merged commit 26e10cd into main Jan 12, 2026
10 checks passed
@ro-i ro-i deleted the users/ro-i/check-libomp-unit branch January 12, 2026 15:02
Priyanshu3820 pushed a commit to Priyanshu3820/llvm-project that referenced this pull request Jan 18, 2026
(The tests in `TestKmpStr.cpp` are an automatically generated POC to
make sure things work.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

openmp:libomp OpenMP host runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants